// 列表--搜索字段-采购
export const wholesaledata = [
  {
    key: 'payStatus',
    title: '订单状态',
    type: 'select',
    options: [{
      label: '待付款',
      value: '0'
    }, {
      label: '已付款',
      value: '1'
    }],
    attr: {
      placeholder: '请选择'
    }
  },
  {
    key: 'distributorComanyName',
    title: '配送商名称',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'time',
    title: '生成时间',
    type: 'time',
    fieldname: ['startDate', 'endDate'],
    attr: {
      class: 'daterange',
      type: 'daterange',
      'start-placeholder': '开始时间',
      'end-placeholder': '结束时间',
      'default-time': ['00:00:00', '23:59:59']
    }
  }
]

export const stateA = {
  '0': '待付款',
  '1': '已付款'
}
// 列表--列表表头
export const releasecolumnsList = [
  { prop: 'num', label: '序号', width: 60 },
  { prop: 'payOrderCode', label: '支付订单号', width: 180, 'show-overflow-tooltip': true },
  { prop: 'settlePurchaserOrderCode', label: '结算单号', width: 180, 'show-overflow-tooltip': true },
  { prop: 'productSpecCount', label: '品规数', width: 180, 'show-overflow-tooltip': true },
  { prop: 'settleMoney', label: '结算金额', width: 130, 'show-overflow-tooltip': true },
  { prop: 'distributorComanyName', label: '配送商名称', 'min-width': 140, 'show-overflow-tooltip': true },
  { prop: 'createdAt', label: '生成时间', width: 180 },
  {
    prop: 'payStatus',
    label: '状态',
    width: 120
  },
  { prop: 'action', label: '操作', width: 100, fixed: 'right' }
]

// 详情--应付产品明细表头
export const payableReadColumns = [
  { 'min-width': '150', prop: 'deliveryProductCode', label: '院内编码', 'show-overflow-tooltip': true },
  { 'min-width': '200', prop: 'deliveryProductName', label: '产品名称', 'show-overflow-tooltip': true },
  { width: '100', prop: 'specification', label: '规格', 'show-overflow-tooltip': true },
  { width: '100', prop: 'productType', label: '型号', 'show-overflow-tooltip': true },
  { width: '100', prop: 'unit', label: '单位', 'show-overflow-tooltip': true },

  { width: '100', prop: 'price', label: '单价', 'show-overflow-tooltip': true },
  { width: '120', prop: 'num', label: '数量', 'show-overflow-tooltip': true },
  { width: '150', prop: 'money', label: '采购金额', 'show-overflow-tooltip': true },
  { width: '150', prop: 'saleOrder', label: '采购订单号', 'show-overflow-tooltip': true },
  { width: '150', prop: 'deliverOrder', label: '入库单号', 'show-overflow-tooltip': true },
  { width: '150', prop: 'revenueDate', label: '入库日期', 'show-overflow-tooltip': true },
  { 'min-width': '150', prop: 'hospitalSpdCode', label: '配送商产品编码', 'show-overflow-tooltip': true }

]// 详情--付款记录表头
export const payableCostColumns = [
  { width: '200', prop: 'payMoney', label: '付款金额' },
  { width: '300', prop: 'leftPayMoney', label: '剩余付款金额' },
  { width: '300', prop: 'createdAt', label: '付款时间' },
  { 'min-width': '180', prop: 'createdBy', label: '付款人', 'show-overflow-tooltip': true }
]
// 详情--基础信息字段
export const detailForm = [
  { key: 'payOrderCode', title: '应付订单号:' },
  { key: 'settlePurchaserOrderCode', title: '结算单号:' },

  { key: 'distributorComanyName', title: '配送商名称:' },
  { key: 'productSpecCount', title: '品规数:' },
  { key: 'payStatus', title: '订单状态:' },

  { key: 'settleMoney', title: '总金额:' },
  { key: 'createdAt', title: '生成时间:' }
]
